﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using LbangCMS.EFModels;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace LbangCMS
{
    public class Database:DbContext
    {
        public Database():base("Database")
        {

        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
        public DbSet<ContentCategory> ContentCategories { get; set; }
        public DbSet<Admin> Admins { get; set; }
        public DbSet<CompanyInfo> CompanyInfo { get; set; }
        public DbSet<Content> Contents { get; set; }

        public DbSet<Job> Jobs { get; set; }

        public DbSet<Navigation> Navigations { get; set; }

        public DbSet<Product> Products { get; set; }

        public DbSet<ProductCategory> ProductCategories { get; set; }

        public DbSet<ProductProperty> ProductProperties { get; set; }

        public DbSet<SinglePage> SinglePages { get; set; }

        public DbSet<SiteInfo> SiteInfo { get; set; }

        public DbSet<Video> Videos { get; set; }

        public DbSet<VideoCategory> VideoCategories { get; set; }

        public DbSet<Image> Images { get; set; }

        public DbSet<Banner> Banners { get; set; }

        public DbSet<Commodity> Commodities { get; set; }

        public DbSet<CommodityCategory> CommodityCategories { get; set; }

        public DbSet<CommodityImage> CommodityImages { get; set; }

        public DbSet<CommodityProperty> CommodityProperties { get; set; }

        public DbSet<CommodityType> CommodityTypes { get; set; }

        public DbSet<Member> Members { get; set; }

        public DbSet<OrderItem> OrderItems { get; set; }

        public DbSet<ShipAddress> ShipAddresses { get; set; }

        public DbSet<ShoppingCar> ShoppingCars { get; set; }

        public DbSet<TradeOrder> TradeOrders { get; set; }

        public DbSet<WishList> WishList { get; set; }

        public DbSet<SmsCode> SmsCodes { get; set; }


    }
}